<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2020/1/3
 * Time: 10:59
 */

namespace app\api\controller\Validate;


use think\Validate;

class User extends Validate
{
    //配置当前验证器的默认规则
    protected $rule = [
        'USERNAME' => 'require|max:25',
        'PASSWORD'=>'require',
        'EMAIL' => 'require',
    ];

    //配置当前验证器的错误提示消息
    protected $message = [
        'USERNAME.require' => '用户名不能为空',
        'PASSWORD.require'=>'密码不能为空',
        'EMAIL.require'=>'邮箱不能为空'
    ];
}